import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Demo99 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要扫描的根目录(绝对路径或者相对路径");
        String rootDirPath = scanner.next();
        File rootDir = new File(rootDirPath);
        if(!rootDir.isDirectory()){
            System.out.println("您输入的根目录不存在或者不是目录,退出");
            return;
        }
        System.out.println("请输入要找出的文件名");
        String token = scanner.next();
        List<File> result = new ArrayList<>();

    }
}
